import {createApp} from 'vue'
import App from './App.vue'
import {initRouter} from './router'
import './theme/index.less'
import Antd from 'ant-design-vue'
import Viser from 'viser-vue'
import './mock'
import store from './store'
import 'animate.css/source/animate.css'
import Plugins from './plugins'
import {initI18n} from './utils/i18n'
import bootstrap from './bootstrap'


 const router = initRouter(store.state.setting.asyncRoutes)
// const i18n = initI18n('CN', 'US')
const Vue = createApp(App);
Vue.use(Antd)
Vue.mount('#app')
Vue.config.productionTip = false
Vue.use(Viser)
Vue.use(Plugins)
Vue.use(router)
Vue.use(store)
Vue.use(i18n)

bootstrap({router, store, i18n, message: Vue.prototype.$message})


